cmake_minimum_required(VERSION 3.28)
project(cmm_compiler)

set(CMAKE_CXX_STANDARD 17)


include_directories(include)
file(GLOB_RECURSE dir_src src/*.cpp src/Table.cpp)
add_library(lib ${dir_src})

add_executable(cmm_compiler main.cpp)
add_executable(lexical src/lexical.cpp)
add_executable(syntax src/syntax.cpp)

target_link_libraries(cmm_compiler lib)
target_link_libraries(lexical lib)
target_link_libraries(syntax lib)

add_definitions(-DEBUG )
